<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>留言区</title>
</head>
<body bgcolor="#82CA9C">
	<div align="center">
		<h1>留言板</h1>

		<s:form namespace="/" action="index_save" theme="simple">
			<table align="center" cellpadding="5px" cellspacing="0">
				<tr>
					<td>真实姓名:</td>
					<td><s:textfield name="msg.name" /></td>
					<td><s:property value="fieldErrors.name[0]" /></td>
				</tr>
				<tr>
					<td>电子邮箱:</td>
					<td><s:textfield name="msg.email" /></td>
					<td><s:property value="fieldErrors.email[0]" /></td>
				</tr>
				<tr>
					<td>电话号码:</td>
					<td><s:textfield name="msg.phone" /></td>
					<td><s:property value="fieldErrors.phone[0]" /></td>
				</tr>
				<tr>
					<td>物品名称:</td>
					<td><s:textfield name="msg.lostName" /></td>
				</tr>
				<tr>
					<td>其它信息:</td>
					<td><s:textfield name="msg.other" /></td>
				</tr>
				<tr>
					<td>验证码：</td>
					<td><s:textfield name="code" /></td>
					<td><img src="/index_code" /></td>
					<td><span style="color: red"><s:property
								value="fieldErrors.code[0]" /></span></td>
				</tr>
				<tr>
					<td colspan="3" align="center"><s:submit value="提交留言" /> <s:reset
							value="重置" /> <a href="/index"
						style="font-size: 15px; margin-left: 5px">返回</a></td>
				</tr>
			</table>
		</s:form>
	</div>
	<s:debug />
</body>
</html>